package cn.wolfcode.crm.domain;

import com.alibaba.fastjson.JSON;

import java.util.HashMap;
import java.util.Map;

public class SystemDictionaryItem {
    private Long id;

    private Long parentId;

    private String title;

    private Integer sequence;
    Map<String,Object> hashMap = new HashMap<>();
    public String getJson(){
        hashMap.put("id",id);
        hashMap.put("title",title);
        hashMap.put("sequence",sequence);
        // 使用 fastJson 将 json 格式的数据转成 String
        return JSON.toJSONString(hashMap);
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }
}